import { combineReducers } from '@reduxjs/toolkit'; // 导入 combineReducers 函数，用于组合多个 Reducers
import userReducer from './userReducer'; // 导入用户模块的 Reducer
import accountReducer from './accountReducer'; // 导入账户模块的 Reducer

// 组合所有 Reducers
const rootReducer = combineReducers({
  user: userReducer, // 用户模块的 Reducer
  accounts: accountReducer, // 账户模块的 Reducer
});

export default rootReducer; // 将组合后的 rootReducer 作为默认导出，以便在其他文件中导入和使用